package star.cloud.asme.asmePerson.asmePersonExamContent;

import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import star.cloud.asme.base.dto.Result;
import star.cloud.asme.base.mybatis.IBaseController;

@RestController
@RequestMapping("/asmePerson/asmePersonExamContent")
@RequiredArgsConstructor
public class AsmePersonExamContentController implements IBaseController<AsmePersonExamContent> {

    private final AsmePersonExamContentService asmePersonExamContentService;

    @Override
    public Result<AsmePersonExamContent> getOneByCondition(String columnName, Object columnValue) {
        return asmePersonExamContentService.getOneByCondition(columnName, columnValue);
    }

    @Override
    public Result<IPage<AsmePersonExamContent>> getListByConditionsWithPage(AsmePersonExamContent conditions) {
        return asmePersonExamContentService.getListByConditionsWithPage(conditions);
    }

    @Override
    public Result<AsmePersonExamContent> insertOne(AsmePersonExamContent entity) {
        return asmePersonExamContentService.insertOne(entity);
    }

    @Override
    public Result<AsmePersonExamContent> updateOne(AsmePersonExamContent entity) {
        return asmePersonExamContentService.updateOne(entity);
    }
}
